package com.crealth.db;

import java.util.List;

import com.crealth.manager.MybatisManager;
import com.crealth.model.BankChannelModel;

public class BankChannelDb {

	public static void insertBankChannel(BankChannelModel channel) {
		MybatisManager.bankChannelMapper.insertBankChannel(channel);
		MybatisManager.commit();
	}
    
    public static List<BankChannelModel> selectAllBankChannel() {
    	List<BankChannelModel> channells = MybatisManager.bankChannelMapper.selectAllBankChannel();
    	
    	return channells;
    }
    
    public static Integer updateBankChannelByID(BankChannelModel channel) {
    	Integer res = MybatisManager.bankChannelMapper.updateBankChannelByID(channel);
    	MybatisManager.commit();
    	
    	return res;
    }
	
}
